package cn.tedu.submarine;

import javax.swing.*;

//鱼雷潜艇
public class TorpedoSubmarine extends SeaObject{
    //TorpedoSubmarine的构造方法
    public TorpedoSubmarine(){
        super(64,20);
    }
    //重写move()移动
    public void move(){
        x+=speed;//x+(向右边移动)
    }
    //重写getImage()获取图片
    public   ImageIcon getImage(){
        return Images.torpesubm;
    }
    //重写得分
    public int getScore(){
        return 40;
    }
}
